import http from "@/utils/request/httpRequest.ts";
import type {GetGroupByModuleType, getPro} from "@/types/task"

export const getProject = (data: getPro) => http.get<string>("project-distribute/getListByGroupId", {
    params: data
})

export const getUserPro = (data) => http.get<string>("project-distribute/getNoUseProject", {
    params: data
})

export const savePro = (data) => http.post<string>("project-distribute/add", data)

// 获取所有已分配数据
export const getProjectByGroupId = (params: {
    groupId:string
}) => http.get<string[]>("project-distribute/getProjectByGroupId", {params: params})

//teacher-group/getGroupByModule
export const getGroupByModule = () => http.get<GetGroupByModuleType[]>("teacher-group/getGroupByModule")